home *** CD-ROM | disk | FTP | other *** search
Text File | 1990-10-25 | 1.1 KB | 45 lines | [TEXT/MPS ] |
- {[a-,body+,h-,o=100,r+,rec+,t=4,u+,#+,j=20/57/0,n+]}
-
- { MDemoText.p }
- { Copyright © 1985 - 1990 by Apple Computer, Inc. All rights reserved. }
-
- PROGRAM DemoText;
-
- {$MC68020-} { The main program must be universal code }
- {$MC68881-}
-
- USES
- { • MacApp }
- UMacApp,
-
- { • Building Blocks }
- UPrinting, UTEView,
-
- { • Implementation use }
- UTEDocument, UDemoText;
-
- VAR
- gDemoTextApplication: TDemoTextApplication;
-
- {$S Main}
-
- BEGIN
- InitToolBox; { Essential toolbox and utilities
- initialization }
- IF ValidateConfiguration(gConfiguration) THEN { Make sure we can run }
- BEGIN
- { Continue with remainder of initialization }
- InitUMacApp(8); { Initialize MacApp; 8 calls to MoreMasters
- }
- InitUPrinting; { Initialize the Printing unit }
- InitUTEView; { Initialize the TEView unit }
-
- New(gDemoTextApplication); { Create an application object }
- FailNil(gDemoTextApplication);
- gDemoTextApplication.IDemoTextApplication; { Initialize the application }
- gDemoTextApplication.Run; { Run the application }
- END
- ELSE
- StdAlert(phUnsupportedConfiguration);
- END.
-